package com.itheima.Method;

public class ForDouble {
    public static void main(String[] args) {
       int num =  toDouble(3.64);
        System.out.println(num);

    }public static int toDouble(double b){
double xiaoshu = b-(int)b;
        if (xiaoshu>0.5){
            b=(int)b+1;
        }else {b=(int)b;}
   return (int)b; }
}
